package com.ruoyi.tranShort.service;

import java.util.Date;
import java.util.List;
import com.ruoyi.tranShort.domain.ShortSchedulingTask;

/**
 * 排班任务Service接口
 * 
 * @author ruoyi
 * @date 2021-08-17
 */
public interface IShortSchedulingTaskService 
{
    /**
     * 查询排班任务
     * 
     * @param id 排班任务主键
     * @return 排班任务
     */
    public ShortSchedulingTask selectShortSchedulingTaskById(String id);

    /**
     * 查询排班任务列表
     * 
     * @param shortSchedulingTask 排班任务
     * @return 排班任务集合
     */
    public List<ShortSchedulingTask> selectShortSchedulingTaskList(ShortSchedulingTask shortSchedulingTask);

    /**
     * 新增排班任务
     * 
     * @param shortSchedulingTask 排班任务
     * @return 结果
     */
    public int insertShortSchedulingTask(ShortSchedulingTask shortSchedulingTask);

    /**
     * 修改排班任务
     * 
     * @param shortSchedulingTask 排班任务
     * @return 结果
     */
    public int updateShortSchedulingTask(ShortSchedulingTask shortSchedulingTask);

    /**
     * 批量删除排班任务
     * 
     * @param ids 需要删除的排班任务主键集合
     * @return 结果
     */
    public int deleteShortSchedulingTaskByIds(String[] ids);

    /**
     * 删除排班任务信息
     * 
     * @param id 排班任务主键
     * @return 结果
     */
    public int deleteShortSchedulingTaskById(String id);

    /**
     * 添加任务
     * @param schedulingDateId
     * @param startTimeQuantum
     * @param endTimeQuantum
     * @return
     */
    public int addTask(Long schedulingDateId, String startTimeQuantum, String endTimeQuantum, Date executeTime,Long schedulingId);

    /**
     * 任务执行
     */
    public void taskExecute();

    /**
     * 删除任务
     * @param schedulingDateId
     * @param startTimeQuantum
     * @param endTimeQuantum
     * @param executeTime
     * @param schedulingId
     * @return
     */
    int deleteTask(Long schedulingDateId, String startTimeQuantum, String endTimeQuantum, Date executeTime,Long schedulingId);

    /**
     * 修改任务
     * @param schedulingDateId
     * @param startTimeQuantum
     * @param endTimeQuantum
     * @param executeTime
     * @param schedulingId
     * @return
     */
    int updateTask(Long schedulingDateId, String startTimeQuantum, String endTimeQuantum, Date executeTime,Long schedulingId);
}
